<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">
  <div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
      <div class="x_title">
        <h2>修改用户 <i class="fa fa-user"></i><small>${userSession.userName}</small></h2>
        <div class="clearfix"></div>
      </div>
      <div class="x_title">
        <h2>修改用户</h2>
        <div class="clearfix"></div>
      </div>
      <div class="x_content1">
        <form class="form-horizontal form-label-left" action="checksave" method="post">
          <input type="hidden" name="id" value="${devUser.id}" id="devId">
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户名 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <input class="form-control col-md-7 col-xs-12" type="text" id="devName" value="${devUser.devName}">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户账号 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <input type="text" class="form-control col-md-7 col-xs-12" id="devCode" value="${devUser.devCode}" readonly>
            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户密码 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <input class="form-control col-md-7 col-xs-12" type="password" id="devPassword" value="${devUser.devPassword}">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">重复密码 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <input class="form-control col-md-7 col-xs-12" type="password" id="reDevPassword" value="${devUser.devPassword}">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户邮箱 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <input type="text" class="form-control col-md-7 col-xs-12" id="devEmail" value="${devUser.devEmail}">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">用户状态 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <input type="text" class="form-control col-md-7 col-xs-12" id="devState" value="<c:if test="${devUser.state==1}">审核通过</c:if><c:if test="${devUser.state==0}">审核中</c:if><c:if test="${devUser.state==2}">审核不通过</c:if> " readonly>
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">开发者简介 <span class="required">*</span>
            </label>
            <div class="col-md-4 col-sm-6 col-xs-12">
              <textarea class="form-control col-md-7 col-xs-12" id="devInfo">${devUser.devInfo}</textarea>
            </div>
          </div>
          <div class="form-group">
            <div class="col-md-6 col-md-offset-3">
              <button type="button" name="status" value="2" class="btn btn-success" id="editUserBtn">修改</button>
              <button type="button" class="btn btn-primary" id="back">返回</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <%@include file="common/footer.jsp"%>
  <script src="${pageContext.request.contextPath }/statics/localjs/edituser.js"></script>
